package main;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Paweł Beder
 * @version 1.0
 */
public class Problem {
	private String name;
	private Map<Integer, Double> data;
	
	public Problem(String name) {
		this.setName(name);
		setData(new HashMap<Integer, Double>());
	}
	
	public void addData(int year, double size){
		getData().put(year, size);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Map<Integer, Double> getData() {
		return data;
	}

	public void setData(Map<Integer, Double> data) {
		this.data = data;
	}
}